
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService" %>
<%
    BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
%>

<% 
	String uploadUrl = (String) request.getAttribute("uploadUrl");
	String fileid = request.getParameter("id");
	String filetype = request.getParameter("fileType");
%>		

	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
	<link rel="stylesheet" type="text/css" href="common.css" media="all" />
  	<script type="text/javascript" src="common.js" ></script> 
  	<script type="text/javascript" src="menu.js" ></script> 
	<body onload="MM_preloadImages('images/sejung-1_left01-ov.gif','images/sejung-1_left02-ov.gif','images/sejung-1_left03-ov.gif','images/sejung-1_left04-ov.gif','images/sejung-1_left05-ov.gif')">
  	<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#363539">		
	<form method="POST" action="<%= blobstoreService.createUploadUrl("/blobstore") %>" enctype="multipart/form-data">
	<input type=hidden name=parentId value=<%=fileid %>>
	<input type=hidden name=fileType value=<%=filetype %>>
	<input type=hidden name=uploadType value=thumbnail>
      <tr>
    	<th width="30" bgcolor="#363539">&nbsp;</th>
    	<th width="1314" colspan=2  bgcolor="#363539">
    	<%@include file="top.jsp" %>
  		</th>
  	</tr>
  	<tr>
    	<th width="30" rowspan="2" bgcolor="#363539">&nbsp;</th>
    	<th width="202" bgcolor="#363539" valign=top>
    	<%@include file="leftmenu.jsp" %>
    	</th>
    	<th bgcolor="#363539" valign=top>
    	<table>
    	<tr>
		<th height="24" scope="row">&nbsp;</th>
    	</tr>
    	<tr>
     	
    		<th>
			<table class="ex1">
			<!--
			<tr class="odd">	
				<td>Title</td>
				<td>&nbsp;&nbsp;<input type="text" name="title" size=30 /></td>
			</tr>
			
			<tr>
    		<th height="5" scope="row">&nbsp;</th>
    		</tr>
				<tr class="odd">	
					<td>episode</td>
					<td>&nbsp;&nbsp;<input type="text" name="episode" size=30 /></td>
				</tr>
			<tr>
    		<th height="5" scope="row">&nbsp;</th>
    		</tr>
				<tr class="odd">	
					<td>Series</td>
					<td>
						&nbsp;&nbsp;<input type="text" name="series" size=30 />						
					</td>
				</tr>
				<tr>
    		<th height="5" scope="row">&nbsp;</th>
    		</tr>
				<tr class="odd">	
					<td>Album</td>
					<td>
						&nbsp;&nbsp;<input type="text" name="album" size=30 />						
					</td>
				</tr>
				<tr>
    		<th height="5" scope="row">&nbsp;</th>
    		</tr>
				<tr class="odd">	
					<td>Genre</td>
					<td>
						&nbsp;&nbsp;<input type="text" name="genre" size=30 />						
					</td>
				</tr>
 -->						
			<tr>
    		<th height="5" scope="row">&nbsp;</th>
    		</tr>			
				<tr class="odd">	
					<td class="odd">Thumbnail file:</td>
					<td>
						&nbsp;&nbsp;<input type="file" name="myFile" size=30 />						
					</td>
				</tr>
				<tr>
			
    		<th height="5" scope="row">&nbsp;</th>
    		</tr>
				<tr>
					<td colspan="2" align=right><input type="submit" value="upload"/></td>
				</tr>				
			</table>
			</th>
    	</tr>
    	</table>
    </th>
  </tr>
  <tr>
    <th height="960" bgcolor="#363539"></th>
  </tr>
		</form>
	</body>	
</html>